package com.tansun.easycare.rule.datamodel.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 离散型变量码值Entity
 *
 * @author lxs
 * @version 2017-02-21
 */
public class RuleDataDomain extends RuleBaseEntity<RuleDataDomain> {

    private static final long serialVersionUID = 1L;
    private String domainId;        // 码值域ID
    private String name;        // 码值名
    private String domainValue;        // 码值

    public RuleDataDomain() {
        super();
    }

    public RuleDataDomain(String id) {
        super(id);
    }

    @Length(min = 0, max = 20, message = "码值域ID长度必须介于 0 和 20 之间")
    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }

    @Length(min = 0, max = 20, message = "码值名长度必须介于 0 和 20 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min = 0, max = 20, message = "码值长度必须介于 0 和 20 之间")
    public String getDomainValue() {
        return domainValue;
    }

    public void setDomainValue(String domainValue) {
        this.domainValue = domainValue;
    }

}